package cn.itcast.service.impl;

import java.util.Date;
import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import cn.itcast.domain.User;
import cn.itcast.mapper.UserMapper;
import cn.itcast.service.UserService;

@Service
public class UserServiceImpl implements UserService{

	@Autowired
	private UserMapper userMapper ;
	
	@Override
	public List<User> findAll() {
		
		List<User> list = userMapper.findAll();
		
		return list;
	}

	@Override
	public void insert(User user) {
		
		userMapper.insert(user);
		
	}

}
